package com.gitee.zhanyao.cloud.mq.consumer.rocketmq;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author chendm
 * @create 2021-03-10 14:41
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "zhanyao.rocketmq.producer")
public class MQProducerProperties {

    private String groupName;
    private String namesrvAddr;
    // 消息最大值
    private Integer maxMessageSize;
    // 消息发送超时时间
    private Integer sendMsgTimeOut;
    // 失败重试次数
    private Integer retryTimesWhenSendFailed;
}
